import os

BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))

LANGUAGE_CODE = 'zh-hans'

# 腾讯云短信应用的 app_id
TENCENT_SMS_APP_ID = 1400669679

# 腾讯云短信应用的 app_key
TENCENT_SMS_APP_KEY = "f9c62d1e4e03a42ace771196e422e2a1"

# 腾讯云短信签名内容
TENCENT_SMS_SIGN = "python小戴公众号"


CACHES = {
    "default": {
        "BACKEND": "django_redis.cache.RedisCache",
        "LOCATION": "redis://127.0.0.1:6379", # 安装redis的主机的 IP 和 端口
        "OPTIONS": {
            "CLIENT_CLASS": "django_redis.client.DefaultClient",
            "CONNECTION_POOL_KWARGS": {
                "max_connections": 1000,
                "encoding": 'utf-8'
            },
            "PASSWORD": "001205" # redis密码
        }
    }
}
#腾讯cos的id和key
TENCENT_COS_ID='AKID9DnKhstpfQzQn12qW3SegZFMI3hAQWSC'
TENCENT_COS_KEY='qY7c5S8vgNzbD8udGlDanutpogVCudHr'



ALI_GATEWAY= "https://openapi.alipaydev.com/gateway.do"
ALI_PRI_KEY_PATH=os.path.join(BASE_DIR,'files/应用私钥.txt')
ALI_PUB_KEY_PATH=os.path.join(BASE_DIR,'files/支付宝公钥.txt')
ALI_NOTIFY_URL="http://2l344630k7.wicp.vip/pay/notify/"
ALI_RETURN_URL="http://127.0.0.1:8000/pay/notify/"
ALI_APPID="2021000119687555"
